Fix Content-Type header for cached APIResponse#7697
Conversation
Backport to 3.49: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 84a6c2e on top of patchback/backports/3.49/84a6c2e6d9e615bf6de7b58531cd749d557f3c68/pr-7697 Backporting merged PR #7697 into main
🤖 @patchback |
Backport to 3.63: 💚 backport PR created✅ Backport PR branch: Backported as #7699 🤖 @patchback |
Backport to 3.73: 💚 backport PR created✅ Backport PR branch: Backported as #7700 🤖 @patchback |
Backport to 3.85: 💚 backport PR created✅ Backport PR branch: Backported as #7701 🤖 @patchback |
Backport to 3.105: 💚 backport PR created✅ Backport PR branch: Backported as #7702 🤖 @patchback |
Backport to 3.110: 💚 backport PR created✅ Backport PR branch: Backported as #7703 🤖 @patchback |
ApiResponse overwrites the Content-Type header with the passed in
content_typeargument on initialization, so we need to save it to the cache to ensure the cached response still has the original header.📜 Checklist
See: Pull Request Walkthrough